package com.academic_system.service;

import com.academic_system.model.PartyActivity;
import com.academic_system.model.PartyActivityConditions;
import com.academic_system.util.Message;
import org.springframework.stereotype.Service;

/**
 * @author 20155880 房雁颖
 * @description 党支部活动业务层接口
 * @project_name PartyActivityService
 * @package com.academic_system.service
 * @create 2018-11-13 8:32
 **/
@Service
public interface PartyActivityService {
    /**
     * @param partyActivity
     * @Description 党支部活动录入
     * @author 20155880 房雁颖
     * @methodName addPartyActivity
     * @returnType Message
     * @create 2018/11/18 8:45
     **/
    Message addPartyActivity(PartyActivity partyActivity);

    /**
     * @param partyActivity
     * @Description 党支部活动修改，保存
     * @author 20155880 房雁颖
     * @methodName savePartyActivity
     * @returnType Message
     * @create 2018/11/18 8:45
     **/
    Message savePartyActivity(PartyActivity partyActivity);


    /**
     * @param partyActivity
     * @Description 党支部活动修改,提交
     * @author 20155880 房雁颖
     * @methodName commitPartyActivity
     * @returnType Message
     * @create 2018/11/18 8:45
     **/
    Message commitPartyActivity(PartyActivity partyActivity);


    /**
     * @param party_activity_id
     * @Description 党支部活动删除
     * @author 20155880 房雁颖
     * @methodName deletePartyActivity
     * @returnType Message
     * @create 2018/11/18 8:45
     **/
    Message deletePartyActivity(int party_activity_id);

    /**
     * @param partyActivityConditions
     * @Description 党支部活动动态查询(按活动名称、活动时间),活动表
     * @author 20155880 房雁颖
     * @methodName queryPartyActivityByConditions
     * @returnType Message
     * @create 2018/11/18 8:45
     **/
    Message queryPartyActivityByConditions(PartyActivityConditions partyActivityConditions);

    /**
     * @param partyActivityConditions
     * @Description 党支部活动动态查询(按活动名称、活动时间),活动表
     * @author 20155880 房雁颖
     * @methodName queryPartyActivityByConditionsByCache
     * @returnType Message
     * @create 2018/11/18 8:45
     **/
    Message queryPartyActivityByConditionsByCache(PartyActivityConditions partyActivityConditions);

//    /**
//     * @param partyActivityConditions
//     * @Description 党支部活动动态查询(按活动名称、活动时间)，临时表
//     * @author 20155880 房雁颖
//     * @methodName queryPartyActivityTempByConditions
//     * @returnType Message
//     * @create 2018/11/18 8:45
//     **/
//    Message queryPartyActivityTempByConditions(PartyActivityConditions partyActivityConditions);

    /**
     * @param party_organization_num
     * @Description 党支部活动统计，通过党支部编号
     * @author 20155880 房雁颖
     * @methodName countActivity
     * @returnType Message
     * @create 2018/11/18 8:45
     **/
    Message countActivity(int party_organization_num);

    /**
     * @param party_activity_id
     * @Description 通过党支部活动ID查找党支部活动信息,活动表
     * @author 20155880 房雁颖
     * @methodName queryPartyActivityById
     * @returnType Message
     * @create 2018/11/18 8:45
     **/
    Message queryPartyActivityById(int party_activity_id);

//    /**
//     * @param party_activity_id
//     * @Description 通过党支部活动ID查找党支部活动信息，临时表
//     * @author 20155880 房雁颖
//     * @methodName queryPartyActivityTempById
//     * @returnType Message
//     * @create 2018/11/18 8:45
//     **/
//    Message queryPartyActivityTempById(int party_activity_id);

    /**
     * @param party_activity_id
     * @Description 通过党支部活动ID查找党支部名称
     * @author 20155880 房雁颖
     * @methodName queryPartyNameByPAI
     * @returnType Message
     * @create 2018/11/18 8:45
     **/
    Message queryPartyNameByPAI(int party_activity_id);
}
